package cn.stronglink.asset.module.outofstorage.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.plugins.Page;

import cn.stronglink.asset.module.outofstorage.mapper.OutOfStorageMapper;
import cn.stronglink.asset.module.outofstorage.vo.OutOfStorageVo;

@Service
@Transactional(rollbackFor=Exception.class)
public class OutOfStorageService {
	
	@Autowired
	private OutOfStorageMapper outOfStorageMapper;
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page<OutOfStorageVo> getListByParams(Page<OutOfStorageVo> page, Map<String, Object> param){	
		List<OutOfStorageVo> list = outOfStorageMapper.getListByParams(page, param);
		page.setRecords(list);
		return page;
	}

	
}
